import http from "../utils/http/http.js";

const page = (data) => {
    return http.post("/courseManage/getCoursePage", data);
};
const add = (data) => {
    return http.post("/courseManage/create", data);
}
const update = (data) => {
    return http.put("/courseManage/update", data);
}
const delCourse = (data) => {
    return http.del("/courseManage/delete", data);
}
const detailCourse = (data) => {
    return http.get("/courseManage/getCourseDetail", data);
}
export default {
    page,add,update,delCourse,detailCourse
}